﻿/*************************************************
*Author:yeshaowei
*Date:2016/12/21 16:33:06
*Des:工具类
************************************************/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace APIBuilder
{
    public static class Common
    {
        public static Dictionary<string, string> Params = new Dictionary<string, string>();
        public static string NewAPI = string.Empty;

        public static string Caption = "API Builder";
        public static void InitData()
        {
            Params.Clear();
            NewAPI = string.Empty;
        }

        public static string GetBaseURL()
        {
            return System.Environment.CurrentDirectory;
        }

        public static string GetConfigByKey(string key)
        {
            return ConfigurationManager.AppSettings[key];
        }




    }
}
